from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.

def user_2017(request):
    print('{:-^100}'.format('user_2017'))
    return render(request, 'app2/index.html', {
        'view_name': 'user_2017'
    })

def year_user(request, year):
    print('{:-^100}'.format('year_user'))
    print(year)
    return render(request, 'app2/index.html', {
        'view_name': 'year_user'
    })


def month_user(request, year, month):
    print('{:-^100}'.format('month_user'))
    print(year)
    print(month)
    return render(request, 'app2/index.html', {
        'view_name': 'month_user'
    })


def year_month_slug(request, year, month, slug):
    print('{:-^100}'.format('year_month_slug'))
    print(year)
    print(month)
    print(slug)

    return render(request, 'app2/index.html', {
        'view_name': 'year_month_slug'
    })


def index(request):
    return render(request, 'app2/index.html', {
        'view_name': 'index'
    })

